import Vue from 'vue'
import App from './App.vue'

import index from './views/index.vue'
import news from './views/news.vue'
import NoteFound from './views/NoteFound.vue'
import PE from './views/PE.vue'
import abroadPE from './views/second/abroad_PE.vue'
import domesticPE from './views/second/domestic_PE.vue'
import indexPE from './views/second/index_PE.vue'


Vue.config.productionTip = false
import VueRouter from 'vue-router'
Vue.use(VueRouter)
let routes = [
  { name: 'index', path: '/', redirect: 'index' },
  { name: 'index', path: '/index', component: index },
  { name: 'news', path: '/news', component: news },
  {
    name: 'PE',
    path: '/PE', component: PE, children: [
      { path: 'abroadPE', component: abroadPE },
      { path: 'domesticPE', component: domesticPE },
      { path: 'indexPE', component: indexPE },
    ]
  },
  { path: '*', component: NoteFound },
]
let router = new VueRouter({ routes, module: 'history' })
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
